home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Info-Mac 3
/
Info_Mac_1994-01.iso
/
Graphics
/
Utility
/
GL Viewer 1.1.1
/
src ƒ
/
CHANGES
next >
Wrap
Text File
|
1993-09-06
|
5KB
|
110 lines
GL Viewer 1.1.1 by Martin Fong (mwfong@nisc.sri.com)
Version 1.1.1 06SEP93
* Changed GIF reader to correctly declare and invoke readimage () when it
encounters a file with the extension ".gif" that isn't a GIF file. This
eliminates one crash condition: casting a "short" address. (Introduced in
1.1.)
* f_setrgb () corrected to check for a currently installed color map before
invoking XStoreColors (). If one doesn't exist, it uses the color map from
the last PLOADed image. This eliminates another crash condition: deferencing
a NIL color map handle in XStoreColors (). (Inherited from 1.0.)
* Implemented a GL Viewer-specific assert () macro for debugging.
* parser.c:sowsanl () changed so that scripts whose last directive is a comment
statement without a newline won't cause memory overreads, which in turn cause
garbage to be parsed, stored, and potentially executed. (Inherited from 1.0.)
* exec.c:installcmap () changed to issue an error message if f_palette () attempts
to install a non-existent color map. xlib.c:XCopyArea () also changed to avoid
using a NIL CTabHandle. (Inherited from 1.0.)
* Corrected readimage () plane consolidation for bits per plane == 1 and number of
planes == 4 to use u_long offsets instead of ints. (Introduced in 1.1.)
* Corrected f_cycle () to compute end *after* start and number have been popped off
of the execution stack, otherwise a bogus terminal for-loop value is arbitrary
computed which, in turn, will cause catastrophic memory overwrites. (Inherited
from 1.0.)
* Corrected f_gosub () and f_return () to use ipstackptr instead of loopstackptr.
This should make gosub's work even if executed within a mark/loop context.
(Inherited from 1.0.)
* Implemented image loop, which is selected via the options dialog. Command-.
continues normal execution, click displays next image, option-click displays
previous image. On extended keyboards, you can also use the home/page/arrow
keys to navigate through the images. This is useful to see if GL Viewer is
displaying all images specified in a script or is having problems decoded images.
* Implemented XDrawLine () and XDrawPoint (). However, they haven't been tested.
* SystemTask () now called in exitcheck ().
* readimage () and readpcximage () changed to call CheckColorMap (), which in turn
prevents colormaps from being entirely black (-- a grayscale is used instead).
(Inherited from 1.0.)
* Added support for text images.
* Extraneous directive parameters are now ignored.
Version 1.1 28AUG93
* Enhancement of GL View 1.0 copyright (c) 1991 by Patrick J. Naughton
* Converted to THINK C 5.0.x from MPW. Among other things, this entailed
eliminating the assumption that sizeof (int) == sizeof (long), and explicitly
including <stdlib.h> so that malloc () did not "return" short pointers or
allocate less space than intended.
* 640 x 200 1-bit deep video C images are now rescaled to 640 x 400 or 320 x 200.
The bits for these images are also complemented to permit proper viewing when
the screen's depth is 1.
* Because the original GIF decoder did not work even in original GL View 1.0
application, I've completely replaced it with one adapted from the Net.
* Various GL directives were tweaked, based upon the GL documentation and actual
files, so that they accept the appropriate number of arguments, instead of
aborting the program. In addition, illegal directives are now displayed to
the console.
* Implemented diagonal fades.
* XCopyArea () now clips based upon the image's dimensions. Also, color maps are
*not* used for 1-bit deep images to eliminate inaccurate color rendering.
* Made the runtime executive more bullet-proof by validating picture, clip, and
font registers. Also, asserts have been sprinkled liberally throughout the code.
* glview.c:readdirectory () now attempts to confirm that the specified input file
is actually a GL file. However, a more rigorous check needs to be implemented
(viz., checking the internal integrity of the directory entries against the
physical length of the input file).
* The number of picture registers was increased to 32.
* Corrected xlib.c:isPressed () and Keypress () so they actually work.
* You can now terminate execution within long fades and when images are initially
being read. Also, when waitkey is executing, pressing Command-. will also stop
execution.
* exec.c:displaystring () overhauled to render via DrawText (). (This is an
improvement over displaying nothing!)
* Resource file stripped of unreferenced resources.
* Options dialog implemented to replace CLI. This is invoked by holding down the
Command key when starting the application.
* Added video mode '?', which sets the size of the output window to the maximum of
all the image dimensions. However, any previous video directive that defines a
larger window size will prevail.